package com.zhuang.chapter08.work02;

public class TestStudent {

	public static void main(String[] args) {
		Student student[] = { new Undergaduate("小红", "Math", 100), new Postgraduate("小芳", "English", 70) };
		for (int i = 0; i < student.length; i++) {
			System.out.println(
					"姓名：" + student[i].getName() + "，学科：" + student[i].getCourse() + "，分数:" + student[i].getScore());
		}
	}
}
